/*!*********************************************************************************
 * X2Engine Open Source Edition is a customer relationship management program developed by
 * X2 Engine, Inc. Copyright (C) 2011-2019 X2 Engine Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY X2ENGINE, X2ENGINE DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 610121, Redwood City,
 * California 94061, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2 Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2 Engine".
 **********************************************************************************/




$inputSpacing: 23px;

.x2-remote-page.mobile-login {
    .form {
        height: 100%;
    }
}

#login-form {
    height: 100%;
    .ui-btn {
        @include btn-states;
    }
    a {
        color: $loginLinkColor;
    }
    padding: 0 20px;

    .captcha-container {
        margin-top: $inputSpacing;
        .hint {
            color: white;
        }
    }

    .ui-input-text, .ui-input-btn {
        margin-top: 0;
        input {
        }
    }
//    .ui-input-btn.ui-focus {
//        background: red;
//    }
//    .ui-input-btn:active {
//        background: green;
//    }

    .remember-me-checkbox-container {
        border-radius: .3125em;
        * {
            border-radius: inherit;
        }
        .ui-checkbox {
            margin: 0;
        }
        &::before, &::after {
            display: none;
        }
        .ui-btn-text {
            font-size: 10px;
            vertical-align: middle;
        }
        .ui-fullsize span.ui-btn-inner {
            // padding: 2px 40px !important;
        }
    }
    .full-site {
        height: 27px;
        a {
            line-height: 27px;
        }
    }
    .remember-me-checkbox-container, .full-site {
        margin: 0 !important;
    }
    .login-row {
        margin-top: $inputSpacing;
        margin-bottom: 20px;
    }
    [data-role='fieldcontain'] {
        margin-top: $inputSpacing;
        margin-bottom: 0;
        padding: 0; 
        .ui-input-text {
            margin: 0;
        }
    }

    .password-help-container, .full-app-link {
        a {
            text-decoration: none;
        }
        text-align: center;
        margin-bottom: 0px;
    }

    .password-help-container {
        margin-top: 30px !important;
        margin-bottom: 30px;
    }

    .full-app-link {
        margin-top: 20px !important;
        margin-bottom: 30px;
    }


    .ui-btn {
        background: $defaultBgColor;
        color: #255296;
    }

    .ui-input-text {
        border-radius: 3px;
        border: none;
        margin: 0;
    }

    .ui-input-btn {
        border-radius: $buttonBorderRadius;
        border: 2px solid $loginInputBorder;
        background: none;
    }

    .ui-input-text, .ui-input-btn {
        @include login-button;
    }

    .ui-input-text {
        background: white;
        box-shadow: $loginInputBoxShadow;
        input {
            padding: 13px 10px;
            line-height: 24px;
        }
    }

    ::-webkit-input-placeholder {
        color: $loginPlaceholderText;
    }

    .logo-container {
        position: relative;
        height: 30%;
        //min-height: 166px;
        & > .login-logo {
            position: absolute;
            margin: auto;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            width: 100%;
            text-align: center;
            padding: 0 0;
            display: block;
            height: 110px;
        }
    }

    #login-form-logo {
        //text-shadow: 1px 4px 6px #233d5f, 0 0 0 #233d5f, 1px 4px 6px #233d5f;
        color: #255296;
        font-weight: bold;
        font-size: 113px;
    }

    #custom-login-form-logo {
    }

    img#login-form-logo {
        width: 95px;
        margin: auto;
    }

    //@media (orientation: landscape) {
//    @media (max-height: 545px) {
//        #login-form-logo {
//            line-height: 25%;
//            padding: 0;
//        }
//        .password-help-container, .full-app-link {
//            margin-top: 25px !important;
//            margin-bottom: 25px;
//        }
//    }
}

